From 98d595e0ee9cdc3f568cab7ba81e1e115db6fdf8 Mon Sep 17 00:00:00 2001 From: parkrrrr Date: Mon, 19 Jan 2004 20:32:21 +0000 Subject: [PATCH] output &#nnn; instead of &#xnnn; since expat doesn't like the latter --- gpsbabel/util.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gpsbabel/util.c b/gpsbabel/util.c index 2cb9f1c5d..fd1d63215 100644 --- a/gpsbabel/util.c +++ b/gpsbabel/util.c @@ -660,7 +660,7 @@ char * xml_entitize(const char * str) utf8_to_int( cp, &bytes, &value ); cp += bytes-1; - elen += sprintf( tmpsub, "&#x%x;", value ) - bytes; + elen += sprintf( tmpsub, "&#%d;", value ) - bytes; nsecount++; } } @@ -705,7 +705,7 @@ char * xml_entitize(const char * str) else { xstr = NULL; } - sprintf( p, "&#x%x;", value ); + sprintf( p, "&#%d;", value ); p = p+strlen(p); if ( xstr ) { strcpy( p, xstr ); -- 2.30.2